const { miniProgram } = wx.getAccountInfoSync()

const { envVersion } = miniProgram

const evn = {
    baseUrl : 'https://gmall-prod.atguigu.cn/mall-api'
}

switch (envVersion) {
    case 'develop':
        evn.baseUrl = 'https://gmall-prod.atguigu.cn/mall-api'
        break

    case 'trial':
        evn.baseUrl = 'https://gmall-prod.atguigu.cn/mall-api'
        break

    case 'release':
        evn.baseUrl = 'https://gmall-prod.atguigu.cn/mall-api'
        break
}

export { evn }